<?php
/**
 * Created by PhpStorm.
 * User: WangXiaoHong
 * Date: 15-9-29
 * Time: 下午2:28
 */
$ac1="124625";
$pw1="a44e45409a99d71088bea2c12314a85c"; //票付通账号跟密码
$s1=new SoapClient("http://open.12301.cc/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));//票付通接口地址

//查询景区列表
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Get_ScenicSpot_List",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>1,"in2"=>''))));
//echo '</pre>';
//查询景区详细信息
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Get_ScenicSpot_Info",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>10633))));
//echo '</pre>';
//门票列表
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Get_Ticket_List",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>10633,"in2"=>''))));
//echo '</pre>';
////动态价格、库存上限获取
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Dynamic_Price_And_Storage",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>19220,"in2"=>"2015-08-29","in3"=>2,"in4"=>1,"in5"=>0))));
//echo '</pre>';


//订单查询
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Order_Globle_Search",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>864590,"in2"=>516293,"in3"=>124612,"in4"=>22132,"in5"=>"一日游","in6"=>"儿童票","in7"=>"2015-10-12 00:00:12","in8"=>"2015-10-12 00:00:12","in9"=>"2015-10-13 00:00:12","in10"=>"2015-10-13 00:00:12","in11"=>"2015-10-12 00:00:12","in12"=>"2015-10-12 00:00:12","in13"=>"","in14"=>"","in15"=>"王","in16"=>"13675094589","in17"=>"","in18"=>"","in19"=>"","in20"=>"","in21"=>"","in22"=>10,"in23"=>2,"in24"=>"13675094589","in25"=>"","in26"=>"","in27"=>""))));
//echo '</pre>';


//提交订单
echo '<pre>';
print_r(simplexml_load_string($s1->__soapCall("PFT_Order_Submit",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>10675,"in2"=>22219,"in3"=>"","in4"=>1,"in5"=>2,"in6"=>"2015-11-23","in7"=>"王","in8"=>"13675094589",
    "in9"=>"13675094589","in10"=>1,"in11"=>2,"in12"=>0,"in13"=>"","in14"=>"","in15"=>0,
    "in16"=>0,"in17"=>46888))));
echo '</pre>';

//订单短信发送、重发接口
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("reSend_SMS_Global_PL",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>2380997))));
//echo '</pre>';

//修改、取消订单
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Order_Change_Pro",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>2674177,"in2"=>1,"in3"=>"18094156978"))));
//echo '</pre>';

//自定义短信发送
//echo "自定义短信发送有错";
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Send_SMS_System_Fee",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>"13675094589",
//    "in2"=>"您已成功预订黄山翡翠谷：成人票:1张,凭证号418276，游玩时间：2014-05-19起，三十天内有效，（请至景区售票处报皖南风情加电子凭证号取票，客服电话：0559-2530211）"))));
//echo '</pre>';

//凭证码查看
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Terminal_Code_Verify",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>"2380997"))));
//echo '</pre>';

//资金余额查看
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("PFT_Member_Fund",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>0))));
//echo '</pre>';

//会员关系查看
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("PFT_Member_Relationship",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>1))));
//echo '</pre>';

//产品抓取通知接口
//echo "产品抓取通知接口有错";
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("Product_Catch_Inform",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>3))));
//echo '</pre>';

//集时通自助短信接口
//echo '<pre>';
//print_r(simplexml_load_string($s1->__soapCall("SMS_User_Defined",array("ac"=>$ac1,"pw"=>$pw1,"in1"=>"fzpft","in2"=>"ab8888","in3"=>"13675094589","in4"=>"山东蓝翔一日游:成人票:1张，凭证号，310180，游玩时间:2015-01-06，取票信息:无需取票，此为入园凭证，请妥善保管。详情及二维码:http://12301.cc/3y2lsy"))));
//echo '</pre>';